#include "StdAfx.h"
#include "Task.h"

ID Task::freeID = 1;

Task::Task(Time timeOfBirth):timeOfBirth(timeOfBirth)
{
	id = (freeID++);
	timeInBuffer = 0;
	timeWorking = 0;
	timeWaiting = 0;
}


Task::~Task(void)
{

}

std::string Task::toString()
{
	ostringstream str;
	str << "Task_" << id << ": t = " << timeOfBirth;
	return str.str();
}




